﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MDS
{
    public class StockAmount
    {
        /// <summary>
        /// 格式化，四舍五入
        /// </summary>
        /// <param name="d"></param>
        /// <param name="decimals"></param>
        /// <returns></returns>
        public static Double Round(Double d, int decimals, MidpointRounding mpr = MidpointRounding.AwayFromZero)
        {
            return Math.Round(d, decimals, mpr);
        }
    }
}
